#ifndef _SEARCHPLACEBYPLACEFORM_H_
#define _SEARCHPLACEBYPLACEFORM_H_

#include <FBase.h>
#include <FUi.h>
#include"FGraphics.h"
#include <FMedia.h>
class SearchPlaceByPlaceForm: public Osp::Ui::Controls::Form,
		public Osp::Ui::IActionEventListener,
		public Osp::Ui::IItemEventListener {

	// Construction
private:
	static int FormId;
public:
	void SetFormId(int id) {
		this->FormId = id;
	}

	static int GetFormId() {
		return FormId;
	}

	SearchPlaceByPlaceForm(void);
	virtual ~SearchPlaceByPlaceForm(void);
	bool Initialize();
	result OnInitializing(void);
	result OnTerminating(void);
	static const int ID_SOFTKEY_BACK = 101;
	static const int ID_SOFTKEY_SEARCH = 102;
	Osp::Ui::Controls::EditField*pEditFieldPlaceSearch;
	/*Osp::Ui::Controls::Frame*pFrame;
	 Osp::Ui::Controls::Form *pFormParent;
	 */
	Osp::Ui::Controls::IconList *pIconlistplace;
	Osp::Base::Collection::ArrayList* listKindPlace;
	int indexSelect;
public:
	/*void SetParentForm(Osp::Ui::Controls::Form*pParent);
	 void SetFrame(Osp::Ui::Controls::Frame*pFrame);
	 */
	Osp::Graphics::Bitmap* GetBitmapN(const Osp::Base::String& name);
	virtual void
	OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	virtual void OnItemStateChanged(const Osp::Ui::Control &source, int index,
			int itemId, Osp::Ui::ItemStatus status);
	void taoVaHienThiIconList();
	void SearchPlace();
};

#endif
